<!--
 * @Author: xuxu12138 1718324422@qq.com
 * @Date: 2024-03-25 15:19:46
 * @LastEditors: xuxu12138 1718324422@qq.com
 * @LastEditTime: 2024-09-04 08:22:06
 * @FilePath: /things-admin/src/view/commentmanagement/PostingManagement.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div>
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="发帖管理" name="management"></el-tab-pane>
      <el-tab-pane v-if="Validation.check(Resources.SENSITIVE)" label="敏感词管理" name="sensitive"></el-tab-pane>
    </el-tabs>
    <router-view/>
  </div>
</template>

<script>
import { Validation } from "@/base/Validation";
import { Resources } from "@/base/Resources";
export default {
  data() {
    return {
      activeName: "management",
      Validation:Validation,
      Resources:Resources
    };
  },
  methods: {
    handleClick(tab, event) {
      this.$router.replace({path:tab.name})
    },
  },
};
</script>

<style lang="less" scoped></style>
